import { Layout } from "antd";
import { Outlet } from "react-router";
import Banner from "@/components/banner";
const { Header, Content } = Layout;

const LayoutWithHeader = () => {
  return (
    <Layout style={{ minHeight: "100vh" }}>
      <Header>
        <Banner />
      </Header>
      <Content style={{ padding: "24px", background: "#f0f2f5" }}>
        <Outlet />
      </Content>
    </Layout>
  );
};

export default LayoutWithHeader;
